lib: Add an API to list only "our" objects, fix prune to use it
authorColin Walters <walters@verbum.org>
Thu, 25 Aug 2016 15:53:27 +0000 (11:53 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 25 Aug 2016 20:01:37 +0000 (20:01 +0000)
commit3ef4cc2e5b9ed36c5b9d11a75162a20d3868ded6
tree4bdf88ea8d02a5e3c432cb6531616d5f2f9ea000
parent683e060099025f4030ebeab445471a9dbc978e10
lib: Add an API to list only "our" objects, fix prune to use it

When doing a prune, we should not try to delete objects in parent
repos, since it'll fail.  There is a bigger discussion about the
semantics of `parent=` to be had, but this will fix trying to use
`ostree prune --repo=/ostree/repo/extensions/rpmostree/pkgcache`.

Closes: https://github.com/ostreedev/ostree/issues/467
Closes: #471
Approved by: jlebon
src/libostree/ostree-repo-prune.c
src/libostree/ostree-repo.c
src/libostree/ostree-repo.h
tests/test-prune.sh